<template>
  <div class="contact">
      <Slideshow></Slideshow>
      <div class="content">
        <div class="header">
           <h3>联系方式</h3>
           <span class="bules"></span>
           <span class="long"></span>
        </div>
        <div class="contacts">
          <div class="phone">
            <img src="/home/static/imgs/phone.jpg" alt="联系电话图标">
            <h4 v-text="this.contacts.phone.name"></h4>
            <P v-for="(phone, index) in this.contacts.phone.value" :key="index">{{phone}}</P>
          </div>
          <div class="mailbox">
            <img src="/home/static/imgs/mailbox.jpg" alt="邮箱图标">
            <h4 v-text="this.contacts.email.name"></h4>
            <P v-for="(item, index) in this.contacts.email.value" :key="index">{{item}}</P>
          </div>
          <div class="address">
            <img src="/home/static/imgs/dizhi.jpg" alt="地址图标">
            <h4 v-text="this.contacts.address.name"></h4>
              <p v-for="(item, index) in this.contacts.address.value" :key="index">{{item}}</p>
          </div>
        </div>
        <Map></Map>
      </div>
      <Footer></Footer>
      <Fixeds></Fixeds>
      <Dialog></Dialog>
  </div>
</template>
<script>
import Slideshow from '../../common/Slideshow'
import Footer from "../../common/Footer"
import Fixeds from "../../common/Fixeds"
import Dialog from "../../common/Dialog"
import Map from './components/Map'
export default {
  name:'Contact',
  components: {
    Slideshow,
    Footer,
    Fixeds,
    Map,
    Dialog
  },
  data(){
    return {
      contacts:{
          phone:{name:"",value:[""]},
          email:{name:"",value:[""]},
          company:{name:"",value:[""]},
          address:{name:"",value:[""]},
          qr:["", ""]
      }
    }
  },
  computed: {
    getcontact(){
      
    }
  },
  created(){
      var node = this;
      window.$.get(this.apiUrl + '/settings/all', {}, function (res) {
          node.contacts = res;
      })
  }
}
</script>
<style scoped>
.contact{
  width: 100%;
  height: auto;
}
.contact .content{
  width: 1200px;
  height: auto;
  margin: 50px auto 100px;
}.contact .content .header{
  width: 1280px;
  height: 54px;
  position: relative;
}
.contact .content .header h3{
  width: 100%;
  height: 38px;
  font-size: 36px;
  color: #110567;
  line-height: 38px;
}
.contact .content .header .bules{
  display: inline-block;
  width: 151px;
  border-top: 3px solid #009ae9;
  margin-top: 7px;
}
.contact .content .header .long{
  display: inline-block;
  width: 1200px;
  border-top: 1px solid #e8e8e8;
  position: absolute;
  bottom: 0;
}
.contact .content .contacts{
  width: 1200px;
  height: auto;
  margin-top: 100px;
  position: relative;
}
.contact .content .contacts .phone{
  width: 204px;
  height: auto;
  display: inline-block;
  text-align: center;
  position: absolut;
  top: 0;
  left: 77px;
}
.contact .content .contacts .phone img{
  width: 100px;
  height: 100px;
}
.contact .content .contacts .phone h4{
  width: 100%;
  height: auto;
  color: #009ae9;
  font-size: 18px;
  margin-top: 20px;
}
.contact .content .contacts .phone p{
  width: 100%;
  height: auto;
  color: 18px;
  color: #000;
  margin-top: 20px;
}
.contact .content .contacts .mailbox{
  width: 204px;
  height: auto;
  margin-left: 230px;
  display: inline-block;
  text-align: center;
  position: absolute;
  top: 0;
}
.contact .content .contacts .mailbox img{
  width: 100px;
  height: 100px;
}
.contact .content .contacts .mailbox h4{
  width: 100%;
  height: auto;
  color: #009ae9;
  font-size: 18px;
  margin-top: 20px;
}
.contact .content .contacts .mailbox p{
  width: 100%;
  height: auto;
  color: 18px;
  color: #000;
  margin-top: 20px;
}
.contact .content .contacts .address{
  width: 204px;
  height: auto;
  margin-left: 230px;
  display: inline-block;
  text-align: center;
  position: absolute;
  top: 0;
  right: 99px;
}
.contact .content .contacts .address img{
  width: 100px;
  height: 100px;
}
.contact .content .contacts .address h4{
  width: 100%;
  height: auto;
  color: #009ae9;
  font-size: 18px;
  margin-top: 20px;
}
.contact .content .contacts .address p{
  width: 100%;
  height: auto;
  color: 18px;
  color: #000;
  margin-top: 20px;
}
</style>